import request from '@/utils/request'

export function selectPatient(query) {
  return request({
    url: '/kbjz/patient/selectByCard/'+query,
    method: 'get',
  })
}
export function selectList(query) {
  return request({
    url: '/kbjz/patient/selectRegFeeInfo',
    method: 'get',
    params:query
  })
}
export function getDeptInfo(query) {
  return request({
    url: '/kbjz/patient/getDeptInfo',
    method: 'get',
    params:query
  })
}

export function register(query) {
  return request({
    url: '/kbjz/patient/insertPatientAndRegister',
    method: 'post',
    params:query
  })
}

//查询科室信息
export function selectDeptInfo(query) {
  return request({
    url: '/kbjz/patient/selectDeptInfo',
    method: 'post',
    params:query
  })
}
